﻿using Microsoft.CodeAnalysis;

namespace S7Cat.Generators.Data
{
    public static class DiagnosticDescriptors
    {
        const string Category = "GenerateS7Cat";

        public static readonly DiagnosticDescriptor MustBePartial = new(
#pragma warning disable RS2008 // 启用分析器发布跟踪
        id: "S7Cat001",
#pragma warning restore RS2008 // 启用分析器发布跟踪
        title: "PlcStruct object must be partial",
        messageFormat: "The PlcStruct object '{0}' must be partial",
        category: Category,
        defaultSeverity: DiagnosticSeverity.Error,
        isEnabledByDefault: true);
    }
}
